package cn.lh.event;

import org.springframework.context.ApplicationEvent;

/**
 * @描述:
 * @版权: Copyright (c) 2023
 * @作者: linhong
 * @版本: 1.0.0
 * @创建时间: 2023/10/12
 */
public class MyEvent extends ApplicationEvent {

    private String message;

    private Integer code;

    public MyEvent(Object source,String message, Integer code) {
        super(source);
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
